package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CustomerDao {

    ////客户列表分页（名称模糊查询）
    Page<Customer> listSelect(@Param("customerName") String customerName);

    //修改客户
    void updateCustomer(Customer customer);

    //新增客户
    void saveCustomer(Customer customer);

    //删除客户
    void deleteCustomer(String id);

    //销售出库  客户下拉列表
    List<Customer> getComboboxList(@Param("q") String q);
}
